package cn.licoy.wdog.core.dto.hospitalUser;

import cn.licoy.wdog.core.entity.system.SysRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @author Sunne
 * Create time 2018/6/21 16:25
 * @return null
 **/
@Data
public class HospitalUserDto {

    @ApiModelProperty("用户名与手机号相同")
    @NotBlank(message = "用户名不能为空")
    @Pattern(regexp = "^(\\w){4,16}$",message = "用户名应为[A-Za-z0-9_]组成的4-16位字符！")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(\\w){6,18}$",message = "密码应为[A-Za-z0-9_]组成的6-18位字符！")
    private String password;

    @ApiModelProperty("医院,第二期不提交")
    //@NotNull(message = "所在医院不能为空")
    private String hospital;
    @ApiModelProperty("职称")
    //@NotNull(message = "职称不能为空")
    private String title;
    @ApiModelProperty("身份证,第二期不提交")
    //@NotNull(message = "身份证不能为空")
    private String idcard;
    @ApiModelProperty("职业证号，第二期不提交")
    private String professionalNum;
    @ApiModelProperty("省，第二期不提交")
    private String province;
    @ApiModelProperty("市，第二期不提交")
    private String city;
    @ApiModelProperty("区，第二期不提交")
    private String area;
    @ApiModelProperty("姓名，第二期不提交")
    private String name;
    @ApiModelProperty("头像")
    private String header;
    @ApiModelProperty("特长")
    private String specialty;
    @ApiModelProperty("科室")
    private String department;
    @ApiModelProperty("手机号")
    @NotNull(message = "手机号不能为空")
    private String phone;
    @ApiModelProperty("认证图片地址，注册时不提交")
    private String idcardUrls;
}
